function td__drawPreload(e){td__drawBody(e),td__drawMenu()}function td__drawGlobal(e){document.querySelector(".td-maincontainer")&&(document.body.innerHTML=""),window.csrf&&document.getElementById("csrf").setAttribute("content",window.csrf),window.lang&&document.body.setAttribute("data-lang",window.lang),td__drawBody(e),td__drawMenu(),"object"==typeof e&&!0===e.nofooter||td__drawFooter(),"function"==typeof td__help__showBubble&&td__help__showBubble()}function td__drawBody(e){var t='
';document.body.insertAdjacentHTML("beforeend",t)}function td__drawBreadcrumbs(e){if("object"==typeof e){var t="https://tilda."+window.location.hostname.split(".").pop(),o="";o+='',o+='
';for(var r=0;r
=20?" td-breadcrumbs__item_long":"")+'">',o+=""===i?''+a+"":''+a+"",o+="",r!==e.length-1&&(o+='
→
')}o+="
",o=td__other__translate(o+=""),document.querySelector(".td-maincontainer").insertAdjacentHTML("afterbegin",o)}}function td__load(e,t,o,r){"object"!=typeof o&&(o={}),"noloader"!==o.loadicon&&("corner"===o.loadicon?showLoadIcon():showCentralLoadIcon());var n=Date.now();void 0!==window.xhr_get&&window.xhr_get.abort();var i="/page/publish/"===e?35:20;function onSuccess(o){if("function"==typeof check_logout&&check_logout(o),""==o)"function"==typeof tc__showDialog?tc__showDialog({msg:"Error. Empty response from server"},"alert"):alert("Error. Empty response from server");else{if("bsf"==o.substring(0,3))try{o=bsfdunicode(o.substring(3))}catch(e){console.log("error bsf")}if("{"===o.substring(0,1)||"["===o.substring(0,1)){var n=td__parseJson(o);"object"==typeof n?(null===n&&(n={}),r(n)):(console.log("Error response. Can not parse response from server: "+o),document.body.innerHTML=o)}else console.log("Error response from server: "+o),"Sorry, you do not have rights to this action"!=o&&"Извините, у вас нет прав на это действие"!=o||(o=''+o+"
",o+='',"/projects/get/getsitesettings/"==e&&void 0!==t.projectid&&(o+=td__other__translate("{{owner_restricted_access|projectid}}",{projectid:t.projectid})),o+='
{{go_back}}',o+="
"),"Project does not exist!"==o&&(o=''+o+"
"),o=td__other__translate(o),document.body.innerHTML=o;-1===o.indexOf("Sorry, you don't have permission to perform this action")&&-1===o.indexOf("Извините, у вас нет прав на это действие")||!document.body.classList.contains("td-body_popup-opened")||document.body.classList.remove("td-body_popup-opened")}}function onError(r,i){var a=Date.now()-n;if(console.log(r.status),console.log(i),"abort"===i){var s=document.getElementById("noactionlayer");s&&(s.style.display="none")}else r.status>=400?(td__drawpageerror(r.status,"(Action: Get "+o.ctext.replace(/^get/i,"").trim()+")"),logAjaxError(e,t,"comm: "+t.comm+", (td__load)",r.status,{ts_delta:parseInt(a/1e3),exception:i,ui:o})):0==r.status&&a<100?"function"==typeof tc__showDialog?tc__showDialog({msg:"Request error (get "+o.ctext+"). Please check your Internet connection and try again."},"alert"):alert("Request error (get "+o.ctext+"). Please check your Internet connection and try again."):(logNetworkError("ajax",e,t,a/1e3,{}),"function"==typeof tc__showDialog?tc__showDialog({msg:"Request timeout (get "+o.ctext+"). Please reload the page and try again."},"alert"):alert("Request timeout (get "+o.ctext+"). Please reload the page and try again."));if("/page/publish/"==e){var d=document.getElementById("loadicon-progress");d&&(d.parentElement.innerHTML="Error!")}}function onComplete(){delete window.xhr_get,hideCentralLoadIcon(),hideLoadIcon()}window.xhr_get=new XMLHttpRequest,window.xhr_get.open("POST",e,!0),window.xhr_get.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),window.xhr_get.responseType="text",window.xhr_get.timeout=1e3*i,window.xhr_get.addEventListener("loadend",(function(){tc__checkServerError&&tc__checkServerError(this)?tc__drawServerError(this.responseText):this.status>=200&&this.status<400?(onSuccess(this.responseText),onComplete()):(onError(this),onComplete())})),window.xhr_get.addEventListener("timeout",(function(){onError(this,"timeout"),onComplete()})),window.xhr_get.addEventListener("abort",(function(){onError(this,"abort"),onComplete()})),window.xhr_get.addEventListener("error",(function(){onError(this,"error"),onComplete()})),t?window.xhr_get.send(td__encodeData(t)):window.xhr_get.send()}function td__submit(e,t,o,r){var n=document.querySelector(o.preview),i=document.querySelector(o.btn);n&&(n.style.display="none",n.innerHTML=""),i&&(i.style.pointerEvents="none",i.style.opacity="0.3"),i&&"string"==typeof o.btntext&&(i.setAttribute("data-btn-progress-text",i.value),i.value=o.btntext),t.csrf=getCSRF(),event&&event.preventDefault();var a=Date.now();function onSuccess(e){"function"==typeof check_logout&&check_logout(e),r(e)}function onError(r,i){var s=Date.now()-a;if(console.log(r.status),console.log(i),"abort"===i);else if(r.status>=400){n&&(n.style.display="block",n.innerHTML="System error ("+o.ctext+"). Please reload the page and try again.");var d="unknown";void 0!==t.comm?d=t.comm:void 0!==t[0].name&&"comm"==t[0].name&&void 0!==t[0].value&&(d=t[0].value),logAjaxError(e,t,"comm:"+d+", (td__submit)",r.status,{ts_delta:parseInt(s/1e3),exception:i,ui:o})}else 0==r.status&&s<100?n&&(n.style.display="block",n.innerHTML="Request error ("+o.ctext+"). Please check your Internet connection and try again."):(n&&(n.style.display="block",n.innerHTML="Request timeout ("+o.ctext+"). Please reload the page and try again."),logNetworkError("ajax",e,t,s/1e3,{}))}function onComplete(){i&&(i.style.pointerEvents="auto",i.style.opacity="1");var e=i&&i.getAttribute("data-btn-progress-text");e&&(i.value=e,i.removeAttribute("data-btn-progress-text")),delete window.xhr_submit,hideLoadIcon()}showLoadIcon(),window.xhr_submit&&window.xhr_submit.abort(),window.xhr_submit=new XMLHttpRequest,window.xhr_submit.open("POST",e,!0),window.xhr_submit.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),window.xhr_submit.responseType="text",window.xhr_submit.timeout=2e4,window.xhr_submit.addEventListener("loadend",(function(){tc__checkServerError&&tc__checkServerError(this)?tc__drawServerError(this.responseText):this.status>=200&&this.status<400&&(onSuccess(this.responseText),onComplete())})),window.xhr_submit.addEventListener("timeout",(function(){onError(this,"timeout"),onComplete()})),window.xhr_submit.addEventListener("abort",(function(){onError(this,"abort"),onComplete()})),window.xhr_submit.addEventListener("error",(function(){onError(this,"error"),onComplete()})),t?window.xhr_submit.send(td__encodeData(t)):window.xhr_submit.send()}function showCentralLoadIcon(){"number"==typeof window.centralloadicon_timerid&&clearTimeout(window.centralloadicon_timerid),window.centralloadicon_timerid=setTimeout((function(){if(!document.getElementById("centralloadicon")){var e='';document.body.insertAdjacentHTML("beforeend",e)}document.getElementById("centralloadicon").style.display="block"}),1e3)}function hideCentralLoadIcon(){clearTimeout(window.centralloadicon_timerid);var e=document.getElementById("centralloadicon");e&&e.remove()}function getUrlParameter(e){for(var t,o=window.location.search.substring(1).split("&"),r=0;r":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,(function(e){return t[e]}))}function replaceUnicode(e){var t={"&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/&|<|>|"|'|'|/|`|=/g,(function(e){return t[e]}))}function reEscapeHTML(e){const t=undefined;return escapeHtml(replaceUnicode(e))}function turesizeurl(e,t){if(void 0===e||""==e||null==e)return e;if(e.indexOf(".svg")>0||e.indexOf(".gif")>0||e.indexOf(".ico")>0||-1===e.indexOf("static.tildacdn.com")||e.indexOf("-/empty/")>0||e.indexOf("-/resize/")>0||e.indexOf("-/resizeb/")>0||e.indexOf("/lib/emoji/")>0||e.indexOf("/-/")>-1)return e;if(!(t>0))return e;var o=e.split("/"),r;return o.splice(e.split("/").length-1,0,"-/resize/"+t+"x"),o.join("/")}function stripTags(e){return"object"!=typeof e&&e&&(e=e.replace(/(<([^>]+)>)/gi,"")),e}function t_throttle(e,t,o){var r,n;return t||(t=250),function(){var i=o||this,a=+new Date,s=arguments;r&&a"+("404"==e?" Page not found":"")+"
Sorry, it looks like we have an internal server error."+(t?"
"+t:"")+'
Please wait for a minute, reload the page, and try again.
If you continue to see this message multiple times, please contact us at: team@tilda.cc
';document.body.innerHTML=o}function td__drawpagenotfound(){var e='Error: 404. Page not found
Sorry, it looks like the page was not found.
';document.body.innerHTML=e}function td__checkCollabAccess(e){if(!window.project||"y"!==window.project.shared)return!0;var t=Array.isArray(window.project.roles)?window.project.roles:[];return!!t.includes("all")||("publish"!==e||t.includes("pg_p"))}function getCookie(e){var t,o=("; "+document.cookie).split("; "+e+"=");if(2==o.length)return o.pop().split(";").shift()}function setCookie(e,t,o){var r=(o=o||{}).expires;if("number"==typeof r&&r){var n=new Date;n.setTime(n.getTime()+1e3*r),r=o.expires=n}r&&r.toUTCString&&(o.expires=r.toUTCString());var i=e+"="+(t=encodeURIComponent(t));for(var a in o){i+="; "+a;var s=o[a];!0!==s&&(i+="="+s)}document.cookie=i}function dateformat(e,t){if(!(e>1048561077))return"";""==t&&(t="RU"==lang?"d.m.y":"d mon, y");var o=new Date(1e3*e),r=o.getFullYear(),n=o.getMonth()+1,i=o.getDate(),a=o.getHours(),s=o.getMinutes();n=n<10?"0"+n:n,i=i<10?"0"+i:i,a=a<10?"0"+a:a,s=s<10?"0"+s:s;var d="";if("d.m.y"==t)d=i+"."+n+"."+r;else if("d mon, y"==t){var c,l,u;d=i+"."+["Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec."][parseInt(n,10)-1]+"."+r}else"h:m"==t&&(d=a+":"+s);return d}function cleanUndefined(e){return empty(e)&&(e=""),e}function empty(e){var t=typeof e;if("undefined"===t)return!0;if("boolean"===t)return!e;if(null===e)return!0;if(void 0===e)return!0;if(e instanceof Array){if(e.length<1)return!0}else if("string"===t){if(e.length<1)return!0;if("0"===e)return!0}else if("object"===t){if(Object.keys(e).length<1)return!0}else if("number"===t&&0===e)return!0;return!1}function number_format(e,t,o,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var n=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,a=void 0===r?",":r,s=void 0===o?".":o,d="",toFixedFix=function(e,t){var o=Math.pow(10,t);return""+Math.round(e*o)/o};return(d=(i?toFixedFix(n,i):""+Math.round(n)).split("."))[0].length>3&&(d[0]=d[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(d[1]||"").lengthВы можете покинуть проект, если не хотите видеть этот проект в списке сайтов и иметь к нему доступ. Сайт останется в исходном аккаунте, но у вас не будет к нему доступа.',EN:'Project owner has restricted your access to the Site Settings.
You can leave the project if you don\'t want to see this project in your website\'s list and to have the access anymore. The website remains in an original account but you won\'t have access to it.',DE:'Der:die Projekteigentümer:in hat Ihren Zugriff auf die Website-Einstellungen eingeschränkt.
Sie können das Projekt verlassen, wenn Sie dieses Projekt nicht mehr in der Liste Ihrer Website sehen und keinen Zugriff mehr darauf haben möchten. Die Website bleibt in einem ursprünglichen Konto, aber Sie werden keinen Zugriff mehr darauf haben.',ES:'El administrador del proyecto ha restringido su acceso a los Ajustes del sitio.
Puede abandonar el proyecto si ya no desea ver este proyecto en su lista de sitios web ni tener acceso al mismo. El sitio web permanecerá en la cuenta original, pero usted ya no tendrá acceso al mismo.',PT:'O proprietário do projeto restringiu seu acesso às configurações do site.
Você pode sair do projeto se não quiser vê-lo na lista do seu site e não quiser mais ter acesso. O site continuará na conta original, mas você não terá mais acesso a ele.'},go_back:{RU:"Вернуться назад",EN:"Go back",DE:"Zurück",ES:"Regresar",PT:"Voltar"}},n=e.match(/\{\{(.[^}]*)\}\}/g),i,a;n&&n.forEach((function(n){i=n.slice(2,n.length-2).split("|")[0];var s=(a="object"==typeof r[i]&&"string"==typeof r[i][o]&&""!=r[i][o]?r[i][o]:"object"==typeof r[i]&&"string"==typeof r[i].EN&&""!=r[i].EN?r[i].EN:i).match(/\$\{(.[^}]*)\}/g);s&&s.forEach((function(e){var o=e.slice(2,e.length-1);t&&void 0!==t[o]&&(a=a.replace(e,t[o]))})),e=e.replace(n,a)}));return e}String.prototype.replaceAll=function(e,t){var o;return this.replace(new RegExp(e,"g"),t)},String.prototype.truncate=function(e,t){var o=this,r=o.length>e?"string"==typeof t?t:"...":"";return o.substring(0,e)+r};